package processes;

import resources.ResPrimitives;

/**
 *
 * @author Ramunas
 */
public class Interrupt extends Process{

    public Interrupt(){
        this.setName("Interrupt");
        this.setId(ProcPrimitives.getUniqueId());
        this.setProgress("0");
        this.setState("Pasiruoses");
        ProcPrimitives.addReady(this);
    }
    
    @Override
    public void go() {
        ResPrimitives.requestResource(ResPrimitives.findResource("kazkas"), this);
    }
    
    public final void step1(){
        //blokavimasis laukiama "Pertraukimas" resurso
        ResPrimitives.requestResource(ResPrimitives.findResource("Pertraukimas"), this);
    }
    
    public final void step2(){
        //pertraukimo identifikavimas
    }
    
    public final void step3(){
        //vm tevinio proceso identifikavimas
    }
    
    public final void step4(){
        //resurso "Pertraukimo pranesimas" sukurimas
    }
    
}
